<?php defined('LFNC_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: sqlite_fetch_values_combine.lfnc.php 271 2009-06-22 17:31:56Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/sqlite/sqlite_fetch_values_combine.lfnc.php $
*/


function sqlite_fetch_values_combine($dbr, $key_col = 'id', $value_col = 'value') {
	$values = sqlite_fetch_values($dbr, $value_col);
	$combine = array();
	foreach (sqlite_fetch_values($dbr, $key_col) as $i => $key) $combine[$key] = $values[$i];
	return $combine;
}


?>